#ifndef PROJECT_TEXTURE_SAMPLE_H
#define PROJECT_TEXTURE_SAMPLE_H

#include "SampleBase.h"
#include "plane.h"
#include "objmesh.h"
#include "glslprogram.h"
#include "glm/glm.hpp"
namespace ShaderLab {
	class ProjectTexSample : public SampleBase {
	public:
		ProjectTexSample();
		~ProjectTexSample();

		void Init();
		void Update(float time);
		void Render();
		void Imgui();
		void ShutDown();
	public:
		void CreateShader();
	private:
		GLSLProgram program;
		std::unique_ptr<Plane> plane;
		std::unique_ptr<ObjMesh> mesh;
		glm::mat4 model, view, projection;
		GLuint projectTex;
		glm::mat4 projView, projProj, bias;
		glm::vec3 projPos, projAt;
	};
}
#endif // !TEMPLATE_SAMPLE_H
